package eunji;



public class Salary {
//ㅁㄴㅇ
float tax, realsalary, risesalary; //tax:세금, realsalary:실수령금, risesalary:내년오를연봉
  
float pay,levelpay,salary; //pay:기본급여, levelPay:직급별 추가 급여, salary:연봉

public Salary(){
 this.pay=pay;
 this.levelpay=levelpay;
}

//public Salary(float pay, float levelpay){
// this.pay=pay;
// this.levelpay=levelpay;
//}

public float getPay() {
 return pay;
}
public void setPay(float pay) {
 this.pay = pay;
}
public float getLevelPay() {
 
 return levelpay;
}
public void setLevelPay(float levelpay) {
 this.levelpay=levelpay;
}
public float getTax() {
 return tax;
}
public void setTax(float tax) //세금은 기본급여+직급별급여의 20%
{
 this.tax=(pay+levelpay)*0.2f;
}

public float getRealsalary() {
 return realsalary;
}
public void setRealsalary(float pay, float levelpay, float tax) { //실수령금액은 기본급여+직급별급여-세금
 this.realsalary=pay+levelpay-tax;
 }

public float getSalary() {
 return salary;
}
public void setSalary(float pay, float levelpay) { //연봉은 (기본급여+직급별급여)*13
 this.salary=(pay+levelpay)*13F;

}
public float getRisesalary() {
 return risesalary;
}
public void setRisesalary(float salary) { //내년연봉은 지금연봉의 5% 상승
 this.risesalary=salary*1.05F;

}
 
} 
